package com.xsq.newmall01.ServiceImpl.MerchantUserServiceImpl;

import com.xsq.newmall01.Dao.MerchantUser;
import com.xsq.newmall01.Dao.Order;
import com.xsq.newmall01.Mapper.MerchantMapper;
import com.xsq.newmall01.Service.MerchantUserService.MOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("merchantorderservice")
public class MOrderServiceImpl implements MOrderService {
    @Autowired
    private MerchantMapper merchantMapper;

    @Override
    public List<Order> getOwnOrders(MerchantUser merchantUser) {
        // 调用Mapper查询商家订单
        return merchantMapper.selectownorder(merchantUser);
    }
}
